<?php
declare (strict_types = 1);

namespace app\common\model;

class Recommend extends Base
{
   protected $name = 'recommend';

    protected function level()
    {
        return $this->hasOne(Level::class, 'id', 'referee');
    }

    protected function qLevel()
    {
        return $this->hasOne(Level::class, 'id', 'q_referee');
    }

    protected function awardLevel()
    {
        return $this->hasOne(Level::class, 'id', 'award_level');
    }

}
